﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StoneFish
{
    public class RandomGenerator  
    {
        Random RndmGen;
        int MaxValue;
        int SeedValue;

        public RandomGenerator(int Seed,int Max)
        {
            SeedValue = Seed;
            MaxValue = Max;
            RndmGen = new Random(Seed);
        }
        /// <summary>
        /// generates a new pseudo-random number
        /// </summary>
        /// <returns>Integer representing the generated number</returns>
        public int generate()  
        {
            return RndmGen.Next(MaxValue);
        }

    }
    
}
